<?php

interface IDatabase {
	
	public function connect();
	
	public function closeConnect();
	
	public function beginTransaction();
	
	public function commit();
	
	public function rollBack();
	
	public function commitSuccess();
	
	public function hasBeginTransaction();
	
	public function hasRollBack();
	
	public function executeNonQuery($cmdText, array $commandParameters=null);
	
	public function executeReturnLastID($cmdText, array $commandParameters=null);
	
	public function executeScalar($cmdText, array $commandParameters=null);
	
	public function executeFetch($cmdText, array $commandParameters=null);
	
	public function executeDataSet($cmdText, array $commandParameters=null);
	
	public function executeDataSetIndex($cmdText, array $commandParameters=null);
	
	public function executeDataSetBOTH($cmdText, array $commandParameters=null);
}

?>